#ifndef __MERCKU_MTD_H__
#define __MERCKU_MTD_H__

#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <core/mercku_error.h>

MError *mtd_erase(const char *mtd);
MError *mtd_read(const char *mtd, char *data, uint32_t length, uint32_t offset);
MError *mtd_write(const char *mtd, const char *data, uint32_t length, uint32_t offset);

#endif // __MERCKU_MTD_H__